package com.mohe.zhihui.service.interfaces;

import java.util.List;

import com.mohe.zhihui.model.Message;
import com.mohe.zhihui.model.Notice;
import com.mohe.zhihui.model.Project;
import com.mohe.zhihui.model.Volunteer;
import com.mohe.zhihui.utils.Page;


/**
 * 志愿者接口
 * @author Bruce
 *
 */
public interface IVolunteer {
	/**
	 * 根据条件查询志愿者信息
	 * 
	 * @param volunteer
	 * @param page
	 * @return
	 */
	public List<Volunteer> getVolunteerList(Volunteer volunteer, Page page);

	/**
	 * 根据条件查询行数
	 * 
	 * @param volunteer
	 * @return
	 */
	public Integer getCount(Volunteer volunteer);

	/**
	 * 保存志愿者信息
	 * 
	 * @param volunteer
	 * @return
	 */
	public boolean saveVolunteer(Volunteer volunteer);

	/**
	 * 根据编号查询信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public Volunteer getVolunteerById(Long timeKey);

	/**
	 * 编辑志愿者信息
	 * 
	 * @param volunteer
	 * @return
	 */
	public boolean updateVolunteer(Volunteer volunteer);

	/**
	 * 根据编号删除信息
	 * 
	 * @param volunteer
	 * @return
	 */
	public boolean delVolunteer(Volunteer volunteer);

	/**
	 * 获取所有志愿者
	 * 
	 * @return
	 */
	public List<Volunteer> getAllVolunteer();
	
	/**
	 * 根据手机号查询信息
	 * 
	 * @param phone
	 * @return
	 */
	public Volunteer getVolunteerByPhone(String phone);
}
